raw_input = prompt

total = 0

while True:
    number = int(raw_input("Enter a number (0 to exit)"))
    if number == 0:
        break
    else:
        total += number

print "The total is: %i" % total
